package cn.wolfcode.feign.fallback;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProduct;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.feign.SeckillProductVOApi;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

/**
 * 为秒杀服务提高容错类
 */
@Component
public class SeckillProductFallback implements SeckillProductVOApi {
    @Override
    public Result getSeckillProductVO(Long time) {
        return Result.defaultError();
    }

    @Override
    public Result<List<SeckillProduct>> getSeckillProducts(Long time) {
        return Result.defaultError();
    }
}
